define(function(require,exports,module) {
    var utils = require('utils');
    var obj = {
        init: function () {
            if(!utils.getLocalStorage('userinfo')){
                utils.goTo('login.html')
            }
        },
        goBack:function () {
            window.history.go(-1);
        }
    };

    $(function () {
        obj.init();
        $('.go-back').click(obj.goBack)
    });
});